package com.captjack.micro.dao.mongodb.entity;

import com.captjack.micro.dao.mongodb.base.BaseMongoEntity;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author Capt Jack
 * @date 2018/2/9
 */
@Document(collection = "newStockCode")
public class NewStock extends BaseMongoEntity {

    /**
     * id
     */
    private static final long serialVersionUID = -3258839839160856613L;

    @Id
    private String id;

    private String code;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "NewStock{" +
                "id='" + id + '\'' +
                ", code='" + code + '\'' +
                '}';
    }

}
